<?php
/**
 * 电子发票接口通路定义类
 *
 * @author xiayuanjun<xiayuanjun@shopex.cn>
 * wangjianjun update 20160623
 * @version 0.1
 */
class erpapi_channel_invoice extends erpapi_channel_abstract 
{
    public $invoice;

    public function init($node_id,$shop_id){

        //获取电子发票授权服务的店铺的node_id
        $mdlInOrderSet = app::get('invoice')->model('order_setting');
        $rs_invoice_setting = $mdlInOrderSet->dump(array("shop_id"=>$shop_id));
        $this->invoice["billing_shop_node_id"] = $rs_invoice_setting["billing_shop_node_id"];

        return true;
    }
}